nav.navbar.navbar-inverse.navbar-fixed-top
    .container
        .navbar-header
            a.navbar-brand(href='/') Microblog
        .navbar-collapse.collapse
            ul.nav.navbar-nav
                li(class={active: path == '/'})
                    a(href='/') 首页
                unless user
                    li(class={active: path == '/login'})
                        a(href='/login') 登录
                    li(class={active: path == '/reg'})
                        a(href='/reg') 注册
                else
                    li(class={active: path == '/logout'})
                        a(href='/logout') 登出
